package com.seegw.shaphar;

import com.javaweb.common.config.CommonConfig;
import com.sphsine.bip.ISHYPDomain;


public class KDLConfig extends DDKJConfig {
    private boolean useSandbox;
    @Override
    String getAppID() {
        return useSandbox? CommonConfig.appIdSandbox:CommonConfig.appId;
    }

    @Override
    String getEnterpriseId() {
        return CommonConfig.appId;
    }

    @Override
    public void  setUseSandbox(boolean useSandbox) {
        this.useSandbox = useSandbox;
    }

    @Override
    public boolean getUseSandbox() {
        return this.useSandbox;
    }

    @Override
    String getSecret() {
        return useSandbox?CommonConfig.appSecretSandbox:CommonConfig.appSecret;
    }



    @Override
    public IKDLDomain getKDLDomain() {
        return new KDLDomain();
    }

    public KDLConfig() {
    }

    public KDLConfig(boolean useSandbox) {
        this.useSandbox = useSandbox;
    }
}
